// import log from '@dfeidao/atom-nodejs/logger/log';
import { IncomingHttpHeaders } from 'http';
import { systemid, productid } from '../../atom/config';
import query from '@dfeidao/atom-nodejs/db/query';

interface Message {


}



export default async function atom(message: Message, action_id: string, session_id: string, headers: IncomingHttpHeaders) {
	// log('Service begin path:e:\7.29考核\kh\src\LiQiuLiang\zj-000004\s002,action_id:' + action_id);

	const res = query(action_id, session_id, systemid);
	res.prepare('security_architecture', ['safety_department_no', 'safety_department_name'], { productid, }, 200, 1, [], []);

	const [q] = await res.exec();

	const res1 = query(action_id, session_id, systemid);
	res1.prepare('security_architecture', ['safety_department_no', 'safety_department_name'], { productid, }, 200, 1, [], []);

	const [q1] = await res1.exec();
	// log('Service end path:e:\7.29考核\kh\src\LiQiuLiang\zj-000004\s002,action_id:' + action_id);
	return {
		q, q1
	}
}
